﻿@model Qu.ComputingContest.Model.Mentor
           
    <fieldset>
        <legend>School Details</legend>
     <table >
        <tr>
            <td>
                <span class="editor-label">
                    School<em>*</em>
                </span>
            </td>
            <td>
                <span style="font-weight:bold;">Type few letters of the School name to search for your School</span><br />
                <span class="editor-field ui-widget">
                   @Html.DropDownListFor(model => model.SchoolID, (Qu.ComputingContest.Model.RegistrationRepository.GetSchools()).Select(option => new SelectListItem
                   {
                       Text = (option == null ? "None" : option.Name),
                       Value = option.SchoolID.ToString(),
                       Selected = (Model != null) && (option.SchoolID == Model.SchoolID)
                   }), "Choose...")
                    @Html.ValidationMessageFor(model => model.SchoolID, "*")
                </span>
                <p style="padding-bottom:15px; padding-top:5px"> If your school is not listed please email <a href="mailto:computingcontest@qu.edu.qa?subject=Computing Contest - Add School"> ComputingContest@qu.edu.qa </a> to request adding it.
                </p>
           </td>
        </tr>
        </table>
        <div id="Mentor">
          @Html.EditorFor(m => m.School)
        </div>

        </fieldset>

    <fieldset>
        <legend>Mentor Details</legend>

     <table >
        <tr>
         <td>
            <span class="editor-label">
                @Html.LabelFor(model => model.FirstName)<em>*</em>
            </span>
          </td>
          <td>
            <span class="editor-field">
                @Html.EditorFor(model => model.FirstName)
                @Html.ValidationMessageFor(model => model.FirstName, "*")
            </span>
         </td>
         <td>
            <span class="editor-label">
                @Html.LabelFor(model => model.MiddleName)<em>*</em>
            </span>
         </td>
         <td>
            <span class="editor-field">
                @Html.EditorFor(model => model.MiddleName)
                @Html.ValidationMessageFor(model => model.MiddleName, "*")
            </span>
         </td>
         <td>
            <span class="editor-label">
                @Html.LabelFor(model => model.LastName)<em>*</em>
            </span>
         </td>
         <td>
            <span class="editor-field">
                @Html.EditorFor(model => model.LastName)
                @Html.ValidationMessageFor(model => model.LastName, "*")
            </span>
         </td>
        </tr>

        <tr>
            <td>
                <span class="editor-label">
                    @Html.LabelFor(model => model.Position)<em>*</em>
                </span>
            </td>
            <td>
                <span class="editor-field">
                    @Html.EditorFor(model => model.Position)
                    @Html.ValidationMessageFor(model => model.Position, "*")
                </span>
            </td>
          <td>
            <span class="editor-label">
                @Html.LabelFor(model => model.Email)<em>*</em>
            </span>
           </td>
           <td>
            <span class="editor-field">
                @Html.EditorFor(model => model.Email)
                @Html.ValidationMessageFor(model => model.Email, "*")
            </span>
            </td>
            <td>
            <span class="editor-label">
                @Html.LabelFor(model => model.Phone)<em>*</em>
            </span>
            </td>
            <td>
            <span class="editor-field">
                @Html.EditorFor(model => model.Phone)
                @Html.ValidationMessageFor(model => model.Phone, "*")
            </span>
            </td>
            <td></td>
        </tr>

      </table>
    </fieldset>
